//
//  NewsTitleCell.m
//  JJHW_coreData
//
//  Created by huazi on 16/4/20.
//  Copyright © 2016年 HFKJ_LZQ. All rights reserved.
//

#import "NewsTitleCell.h"

@implementation NewsTitleCell

- (void)awakeFromNib {
    // Initialization code
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self =[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initSubviews];
    }
    return self;
}
- (void)initSubviews {
    self.labelTitle =[[UILabel alloc] initWithFrame:CGRectMake(15, 10, DeviceWidth-30, 30)];
    self.labelTitle.numberOfLines =0;
    self.labelTitle.font =themeBoldFont17;
//    self.labelTitle.textColor =[];
    [self.contentView addSubview:self.labelTitle];
}
- (void)reloadDataCell:(id)model AndHeignt:(float)height{
    self.labelTitle.frame =CGRectMake(15, 10, DeviceWidth-30, height-20);
    self.labelTitle.text =[model objectForKey:@"content"];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
